using System;
using System.ComponentModel;
using Castle.Components.Validator;
using WineCellar.Core.Converters;

namespace WineCellar.Business.Entities
{
    [TypeConverter(typeof(EntityConverter<Region>))]
    public partial class Region
    {
        [ValidateNonEmpty("Name is a required field")]
        public virtual string Name { get; set; }
	    
        public virtual DateTime? DateAdded { get; set; }
	    
        public virtual int? Id { get; set; }
	    
        public virtual User AddedBy { get; set; }

        public override string ToString()
        {
            return Name;
        }
    }
}